package com.example.deepai.repository;

import com.example.deepai.model.ChatSession;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import org.springframework.stereotype.Repository;  

@Repository
public interface ChatSessionRepository extends JpaRepository<ChatSession, String> {
    List<ChatSession> findAllByOrderByLastMessageTimeDesc();
}